package com.soda.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.soda.bean.User;
import com.soda.util.PageInfo;
import com.soda.util.SelectUserInfo;

public interface UserDao {

	User login(String loginname);
	
	int editUserInfo(User u);

	int editPassWord(@Param("useId")int useId, @Param("newpwd")String newpwd);

	List<User> getAllUser(Map<String,Object> map);

	User getUserById(int id);

	int editUserInfoByAdmin(User u);

	int editUserState(@Param("id")int uid,@Param("ustate") int ustate);

	int deleteById(int useId);

	int getUserCount(SelectUserInfo sui);

	int addUser(User u);
	
	int ajaxSelectLoginName(String loginname);

	String getNameById(int id);

}
